package cn.mingfancloud.基础知识.字符串;

public class DeleteDemo {
    public static void main(String[] args) {
        StringBuffer sbf = new StringBuffer("天行健，君子以自强不息");
        System.out.println("sbf的原值为："+sbf);
        sbf = sbf.delete(4, 7);  //删除从索引4开始至索引7之前的内容
        System.out.println("删除之后的值为："+sbf);
    }
}
